// 字面量 + 联合类型

// type Gender = "男" | "女";
// let gender: Gender;

// gender = "男";

// function searchGender(g: Gender) {}

enum Gender {
  male = "男",
  female = "女",
}

function searchGender(g: Gender) {}

searchGender(Gender.male);

function printGender() {
  const vals = Object.values(Gender);
  vals.forEach((v) => console.log(v));
}

printGender();
